package com.choosefine.it.basedata.service;

import com.choosefine.it.basedata.dao.ProvinceMapper;
import com.choosefine.it.basedata.model.Province;
import com.choosefine.it.basedata.model.ProvinceAndCity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 省service
 * @author guwenwei
 *
 */
@Service("provinceService")
public class ProvinceService{

    @Autowired
    private ProvinceMapper provinceMapper;

    /**
     * 11.22dzq 获取全部省市区级联菜单
     * @return
     */
    public List<Province> selectAll() {
		return provinceMapper.selectAll();
	}

    public Province selectByProvinceID(String provinceid){
    	return provinceMapper.selectByProvinceID(provinceid);
    }
    
	public int deleteByPrimaryKey(Integer id) {
		
		return provinceMapper.deleteByPrimaryKey(id);
	}

	public Province findByPrimaryKey(Integer id) {
		
		return provinceMapper.selectByPrimaryKey(id);
	}

}
